// kX Driver / kX Driver Interface / kX Driver Effects Library
// Copyright (c) Eugene Gavrilov, 2001-2005.
// All rights reserved

/*
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */

// 10kX microcode
// Patch name: 'ProLogica'

char *prologica_copyright="Robert Mazur, Martijn van Eeten";
char *prologica_engine="kX";
char *prologica_comment="Surround Decoder (2->5.1)\nLicense: GNU General Public License; $nobypass";
char *prologica_created="Jan 19 2002";
char *prologica_guid="9aac2f24-7527-47fb-94c1-d665a4c25d92";

char *prologica_name="ProLogica";
int prologica_itramsize=960,prologica_xtramsize=0;

dsp_register_info prologica_info[]={
	{ "Lt",0x4000,0x7,0xffff,0x0 },
	{ "Rt",0x4001,0x7,0xffff,0x0 },
	{ "L",0x8000,0x8,0xffff,0x0 },
	{ "R",0x8001,0x8,0xffff,0x0 },
	{ "Ls",0x8002,0x8,0xffff,0x0 },
	{ "Rs",0x8003,0x8,0xffff,0x0 },
	{ "C",0x8004,0x8,0xffff,0x0 },
	{ "C_0",0x8005,0x1,0xffff,0x0 },
	{ "C_2",0x8006,0x1,0xffff,0x2 },
	{ "C_n1",0x8007,0x1,0xffff,0xffffffff },
	{ "C_2to30",0x8008,0x1,0xffff,0xc0000000 },
	{ "yl",0x8009,0x1,0xffff,0x0 },
	{ "ylp",0x800a,0x1,0xffff,0x0 },
	{ "shp",0x800b,0x1,0xffff,0x0 },
	{ "vcal",0x800c,0x1,0xffff,0x3fffffff },
	{ "vcar",0x800d,0x1,0xffff,0x3fffffff },
	{ "fl",0x800e,0x1,0xffff,0x0 },
	{ "fr",0x800f,0x1,0xffff,0x0 },
	{ "ml",0x8010,0x1,0xffff,0x49ba450a },
	{ "mlp",0x8011,0x1,0xffff,0x23753a3e },
	{ "mhp",0x8012,0x1,0xffff,0x4bee807 },
	{ "mf",0x8013,0x1,0xffff,0x1a9fbe7 },
	{ "tmp",0x8014,0x3,0xffff,0x0 },
	{ "ll",0x8015,0x3,0xffff,0x0 },
	{ "rr",0x8016,0x3,0xffff,0x0 },
	{ "tmp_abs",0x8017,0x3,0xffff,0x0 },
	{ "wrtval",0x8018,0x49,0xffff,0x0 },
	{ "&wrtval",0x8019,0xb,0xffff,0x0 },
	{ "rdval",0x801a,0x29,0xffff,0x3c0 },
	{ "&rdval",0x801b,0xb,0xffff,0x3c0 },
};

dsp_code prologica_code[]={
	{ 0x0,0x8015,0x8005,0x800c,0x4000 },
	{ 0x4,0x8017,0x8005,0x8015,0x8007 },
	{ 0xa,0x8014,0x8005,0x8017,0x8015 },
	{ 0xe,0x800e,0x800e,0x8013,0x8014 },
	{ 0x0,0x8016,0x8005,0x800d,0x4001 },
	{ 0x4,0x8017,0x8005,0x8016,0x8007 },
	{ 0xa,0x8014,0x8005,0x8017,0x8016 },
	{ 0xe,0x800f,0x800f,0x8013,0x8014 },
	{ 0x4,0x8015,0x8005,0x8006,0x8015 },
	{ 0x4,0x8016,0x8005,0x8006,0x8016 },
	{ 0x4,0x8014,0x800f,0x800e,0x8007 },
	{ 0x4,0x800c,0x8008,0x8006,0x8014 },
	{ 0x4,0x800d,0x8008,0x8006,0x8014 },
	{ 0x4,0x8014,0x8015,0x8016,0x8007 },
	{ 0xe,0x8009,0x8009,0x8010,0x8014 },
	{ 0x0,0x8000,0x4000,0x800d,0x8009 },
	{ 0x1,0x8001,0x4001,0x800c,0x8009 },
	{ 0x0,0x8018,0x8009,0x8005,0x8005 },
	{ 0x0,0x8014,0x8005,0x800d,0x801a },
	{ 0x4,0x8002,0x8005,0x8006,0x8014 },
	{ 0x0,0x8014,0x8005,0x800c,0x801a },
	{ 0x4,0x8003,0x8005,0x8006,0x8014 },
	{ 0x6,0x8014,0x8005,0x8015,0x8016 },
	{ 0xe,0x800b,0x800b,0x8012,0x8014 },
	{ 0x4,0x8014,0x8014,0x800b,0x8007 },
	{ 0xe,0x800a,0x800a,0x8011,0x8014 },
	{ 0x0,0x8004,0x800a,0x8005,0x8005 },
	{ 0x4,0x8001,0x4001,0x801a,0x8007 },
	{ 0x4,0x8000,0x4000,0x801a,0x8007 },
};

